package com.bike.entity;

import java.math.BigDecimal;

import org.springframework.util.StringUtils;

import com.bike.util.Constant;
import com.bike.util.TimeManager;

public class HhBusiness {
	 private Long businessId; 
	 private String name; 
	 private String phone; 
	 private String province; 
	 private String city; 
	 private String county; 
	 private Long countyId; 
	 private Integer addTime; 
	 private Integer type; 
	 private Integer status; 
	 private Long parentId; 
	 private Long agentId; 
	 private String agentName; 
	 private BigDecimal balance; 
	 private String bankCode; 
	 private String bankName; 
	 private String bank; 
	 private String bankBranch; 
	 private String bankBranchId; 
	 private String card; 
	 private String cardBack; 
	 private String businessProve; 
	 private String taxProve; 
	 private String lastTimeText; 
	 private String diningBack; 
	 private Integer lastTime; 
	 private BigDecimal serviceFee; 
	 
	 private String bankId;
	 private Long bankProvinceId;
	 private String bankProvince;
	 private Long bankCityId;
	 private String bankCity;
	 private Integer payWithdraw;
	 private Integer disable;
	 
	 private String parentName;
    public String getParentName() {
		return parentName==null?"":parentName;
	}
	public void setParentName(String parentName) {
		this.parentName = parentName;
	}
	public Integer getDisable() {
		return disable;
	}
	public void setDisable(Integer disable) {
		this.disable = disable;
	}
	public Integer getPayWithdraw() {
		return payWithdraw;
	}
	public void setPayWithdraw(Integer payWithdraw) {
		this.payWithdraw = payWithdraw;
	}
	public String getDiningBack() {
		return diningBack;
	}
	public void setDiningBack(String diningBack) {
		this.diningBack = diningBack;
	}
	public String getBankId() {
		return bankId;
	}
	public void setBankId(String bankId) {
		this.bankId = bankId;
	}
	public Long getBankProvinceId() {
		return bankProvinceId;
	}
	public void setBankProvinceId(Long bankProvinceId) {
		this.bankProvinceId = bankProvinceId;
	}
	public String getBankProvince() {
		return bankProvince;
	}
	public void setBankProvince(String bankProvince) {
		this.bankProvince = bankProvince;
	}
	public Long getBankCityId() {
		return bankCityId;
	}
	public void setBankCityId(Long bankCityId) {
		this.bankCityId = bankCityId;
	}
	public String getBankCity() {
		return bankCity;
	}
	public void setBankCity(String bankCity) {
		this.bankCity = bankCity;
	}
	public String getLastTimeText() {
    	if(lastTime!=null&&lastTime>0){
    		return TimeManager.TimeToString(lastTime*1000L, "yyyy-MM-dd");
    	}
		return lastTimeText;
	}
	public void setLastTimeText(String lastTimeText) {
		this.lastTimeText = lastTimeText;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Long getBusinessId() {
        return businessId;
    }
     public void setBusinessId(Long businessId) {
        this.businessId = businessId;
    }
    public String getName() {
        return name;
    }
     public void setName(String name) {
        this.name = name;
    }
    public String getProvince() {
        return province;
    }
     public void setProvince(String province) {
        this.province = province;
    }
    public String getCity() {
        return city;
    }
     public void setCity(String city) {
        this.city = city;
    }
    public String getCounty() {
        return county;
    }
     public void setCounty(String county) {
        this.county = county;
    }
    public Long getCountyId() {
        return countyId;
    }
     public void setCountyId(Long countyId) {
        this.countyId = countyId;
    }
    public Integer getAddTime() {
        return addTime;
    }
     public void setAddTime(Integer addTime) {
        this.addTime = addTime;
    }
    public Integer getType() {
        return type;
    }
     public void setType(Integer type) {
        this.type = type;
    }
    public Integer getStatus() {
        return status;
    }
     public void setStatus(Integer status) {
        this.status = status;
    }
    public Long getParentId() {
        return parentId;
    }
     public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    public Long getAgentId() {
        return agentId;
    }
     public void setAgentId(Long agentId) {
        this.agentId = agentId;
    }
    public String getAgentName() {
        return agentName;
    }
     public void setAgentName(String agentName) {
        this.agentName = agentName;
    }
    public BigDecimal getBalance() {
        return balance;
    }
     public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }
    public String getBankCode() {
        return bankCode;
    }
     public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }
    public String getBankName() {
        return bankName;
    }
     public void setBankName(String bankName) {
        this.bankName = bankName;
    }
    public String getBank() {
        return bank;
    }
     public void setBank(String bank) {
        this.bank = bank;
    }
    public String getBankBranch() {
        return bankBranch;
    }
     public void setBankBranch(String bankBranch) {
        this.bankBranch = bankBranch;
    }
    public String getBankBranchId() {
        return bankBranchId;
    }
     public void setBankBranchId(String bankBranchId) {
        this.bankBranchId = bankBranchId;
    }
     public String getTaxProve() {
         return StringUtils.isEmpty(taxProve)?Constant.uploadDefaultImg:taxProve;
     }
      public void setTaxProve(String taxProve) {
         this.taxProve = taxProve;
     }
     public String getBusinessProve() {
         return StringUtils.isEmpty(businessProve)?Constant.uploadDefaultImg:businessProve;
     }
      public void setBusinessProve(String businessProve) {
         this.businessProve = businessProve;
     }
     public String getCard() {
         return StringUtils.isEmpty(card)?Constant.uploadDefaultImg:card;
     }
      public void setCard(String card) {
         this.card = card;
     }
     public String getCardBack() {
         return StringUtils.isEmpty(cardBack)?Constant.uploadDefaultImg:cardBack;
     }
      public void setCardBack(String cardBack) {
         this.cardBack = cardBack;
     }
    public Integer getLastTime() {
    	if(lastTimeText!=null){
    		return TimeManager.dateTime(lastTimeText);
    	}
        return lastTime;
    }
     public void setLastTime(Integer lastTime) {
        this.lastTime = lastTime;
    }
    public BigDecimal getServiceFee() {
        return serviceFee;
    }
     public void setServiceFee(BigDecimal serviceFee) {
        this.serviceFee = serviceFee;
    }
}